const usersDao = require('../dao/usersDao');

module.exports.insert = async function(users){
    return await usersDao.insert(users);
}

module.exports.find = async function(page,searchParams){
    return await usersDao.find(page,searchParams);
}

module.exports.findById = async function(id){
    return await usersDao.findById(id);
}

module.exports.delete = async function(id){
    return await usersDao.delete(id);
}

module.exports.update = async function(users){
    return await usersDao.update(users);
}


module.exports.search=async function(data){
    return await studentDao.findOne(data)
}